package com.common.www.data;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 全局的一些常用的常量
 */
@Component
public class Constant {
    @Value("${server.servlet.context-path}")
    private String APPLICATION_NAME;

    public String getAPPLICATION_NAME() {
        APPLICATION_NAME = APPLICATION_NAME.replace("/", "");
        return APPLICATION_NAME;
    }
}
